home *** CD-ROM | disk | FTP | other *** search
- Path: toad.stack.urc.tue.nl!not-for-mail
- From: leon@stack.urc.tue.nl (Leon Woestenberg)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Shared library open and close functions
- Date: 16 Feb 1996 10:25:28 +0100
- Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
- Message-ID: <4g1ii8$sod@toad.stack.urc.tue.nl>
- References: <510.6619T1238T1638@Th0r.foo.bar>
- NNTP-Posting-Host: toad.stack.urc.tue.nl
- X-Newsreader: TIN [version 1.2 PL2]
-
- Christopher Naas (christon) wrote:
-
- : I want one function that is called the first time the library is opened, and
- : one function that is called when the library is closed by the last user and it
- : is flushed from memory.
-
- I would suggest doing this:
- In Open(): After increasing the usercount, check if it is 1. If so, invoke
- myStartFunction().
- In Close(): After decreasing the usercount, check if it is 0. If so, invoke
- myFinishFunction().
-
- This brings me to this question: Is it required for the Close function to
- call Expunge when the usecount reached 0?
- --
- Amiga - The most personal computer
- Leon Woestenberg (leon@stack.urc.tue.nl)
- --
-